home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980424-19980901
/
000045_news@newsmaster….columbia.edu _Wed May 6 10:22:04 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA07744
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 6 May 1998 10:22:04 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA26404
for kermit.misc@watsun; Wed, 6 May 1998 10:22:03 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Date Bug?
Date: 6 May 1998 14:21:59 GMT
Organization: Columbia University
Lines: 33
Message-ID: <6iprm7$s4s$1@apakabar.cc.columbia.edu>
References: <6ionbf$s3g@bgtnsc01.worldnet.att.net>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:8697
In article <6ionbf$s3g@bgtnsc01.worldnet.att.net>,
Bernie <bfb@worldnet.att.net> wrote:
: There's a 4 hour discrepancy between the date in C-Kermit
: 6.0.192 and my linux box. Below is the date command issued
: from C-Kermit and then the command line.
:
: How can I set these to be the same?
:
: C-Kermit@localhost> date
: Wed May 6 03:59:03 1998
:
: C-Kermit@localhost> qui
: /home/super/kermit> date
: Tue May 5 23:59:08 EDT 1998
:
I've never seen this before. C-Kermit gets the date and time
(as you might expect) by asking the operating system. The
DATE command simply prints the string returned by the OS.
The exact method for getting the date depends on the operating
system. In most forms of UNIX, the method is to call time(0),
which returns GMT, and then convert to a local-time string by
passing the time(0) result to ctime(), which is supposed to
return local time.
It looks like there might be some confusion about this on your
computer. Locally (in the Eastern USA timezone), the Kermit
"date" command returns the local date and time.
If you want to look at the code, see function ztime() in
ckufio.c.
- Frank